use tokio::fs;

use crate::error::IoErr;


pub const DB_PATH: &'static str = "./app_data/data.db";
pub const HTML_PATH: &'static str = "./app_data/html";

pub const WEB_SERVE_ADDR: &'static str = "0.0.0.0:23331";

pub const ROOT_NAME: &'static str = "管理员";
pub const ROOT_ACCOUNT: &'static str = "root";
pub const ROOT_PWD: &'static str = "root1234";

pub async fn init() -> Result<(), IoErr> {
    fs::create_dir_all(HTML_PATH).await?;
    Ok(())
}

